package com.item.service;

import com.item.dao.OrderItemMapper;
import com.item.dao.model.OrderItem;
import com.item.dao.model.OrderItemExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderItemService {
    @Autowired
    private OrderItemMapper orderItemMapper;

    private static final Logger logger = Logger.getLogger(OrderItemService.class);

    public int countByExample(OrderItemExample example) {
        return this.orderItemMapper.countByExample(example);
    }

    public OrderItem selectByPrimaryKey(String id) {
        return this.orderItemMapper.selectByPrimaryKey(id);
    }

    public List<OrderItem> selectByExample(OrderItemExample example) {
        return this.orderItemMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.orderItemMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(OrderItem record) {
        return this.orderItemMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(OrderItem record) {
        return this.orderItemMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(OrderItemExample example) {
        return this.orderItemMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(OrderItem record, OrderItemExample example) {
        return this.orderItemMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(OrderItem record, OrderItemExample example) {
        return this.orderItemMapper.updateByExample(record, example);
    }

    public int insert(OrderItem record) {
        return this.orderItemMapper.insert(record);
    }

    public int insertSelective(OrderItem record) {
        return this.orderItemMapper.insertSelective(record);
    }
}